import interview.single.*;

import java.util.concurrent.Callable;

/**
 * @ClassName test
 * @Author Final
 * @Project DataStructures
 */
public class test {
    public static void main(String[] args) {
        fun();
    }

    public static void fun(){
        for(int i=1;i<=9999;i++){
            int factor=0; //定义因子变量和，初始值0
            for(int j=1;j<i/2+1;j++){
                if(i%j==0)
                    factor+=j;
            }//内层循环结束；
            if(factor==i)
                System.out.println("  "+i);
        }//外层循环结束

    }
}
